2020-2021 Sunseeker Telemetry and Lighting System
eusci_b_i2c_ex3_slaveRxMultiple.c File Reference
#include "driverlib.h"
#include "Board.h"

Go to the source code of this file.

Macros

#define SLAVE_ADDRESS   0x48
 

Functions

void main (void)
 
void USCIB0_ISR (void)
 

Variables

uint8_t RXData
 

Macro Definition Documentation

◆ SLAVE_ADDRESS

#define SLAVE_ADDRESS   0x48

/|\ /|\ MSP430FR2xx_4xx Board 10k 10k MSP430FR2xx_4xx Board slave | | master --------------— | | --------------—

UCB0SDA <- -—+-> UCB0SDA

| UCB0SCL|<-+---—>|UCB0SCL | | | | |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • I2C peripheral
  • GPIO Port peripheral (for I2C pins)
  • SCL
  • SDA

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • USCI_B0_VECTOR.

Definition at line 78 of file eusci_b_i2c_ex3_slaveRxMultiple.c.

Function Documentation

◆ main()

void main ( void  )

Definition at line 82 of file eusci_b_i2c_ex3_slaveRxMultiple.c.

References __no_operation(), param, and SLAVE_ADDRESS.

◆ USCIB0_ISR()

void USCIB0_ISR ( void  )

Definition at line 140 of file eusci_b_i2c_ex3_slaveRxMultiple.c.

References RXData.

Variable Documentation

◆ RXData

uint8_t RXData

Definition at line 80 of file eusci_b_i2c_ex3_slaveRxMultiple.c.